package com.agileai.crm.module.mytasks.handler;

import com.agileai.crm.module.mytasks.service.FollowUpManage;
import com.agileai.domain.DataParam;
import com.agileai.hotweb.controller.core.MasterSubEditPboxHandler;
import com.agileai.util.StringUtil;

public class MyCustVisitInfoHandler
        extends MasterSubEditPboxHandler {
    public MyCustVisitInfoHandler() {
        super();
        this.serviceId = buildServiceId(FollowUpManage.class);
        this.subTableId = "CrmCustomerInfo";
    }

    protected void processPageAttributes(DataParam param) {
        if (!StringUtil.isNullOrEmpty(param.get("TASK_ID"))) {
            this.setAttribute("TASK_ID", param.get("TASK_ID"));
        }
    }

    protected FollowUpManage getService() {
        return (FollowUpManage) this.lookupService(this.getServiceId());
    }
}
